package demo1104.demo03;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.stream.Stream;

/**
 * @author JYH
 * @version 1.0
 * @date 2022/11/4 16:22
 */
public class TestStream {
    public static void main(String[] args) {
        List<Object> list = new ArrayList<>();
        Collections.addAll(list,1,3,5,"张三","李四","王五");
        Stream<Object> stream = list.stream();

        Object[] arr={1,3,5,"张三","李四","王五"};
        Stream<Object> stream1 = Arrays.stream(arr);

        Stream<String> stream2 = Stream.of("张三", "李四", "王五");
    }
}
